﻿using System;
using System.Collections.Generic;

namespace UFIDA.U9.CUST.AITBarCodeBP.utils
{
    public class AssignRule
    {
        public string ruleCode { get; set; }
        public string category { get; set; }
    }

    public class PrintRule
    {
        public string printTemplateID { get; set; }
        public string erpView { get; set; }
    }

    public class RuleLine
    {
        public string code { get; set; }
        public string name { get; set; }
        public string metadata { get; set; }
        public bool required { get; set; }
        public bool isSerial { get; set; }
    }

    public class BarcodeRule
    {
        public string code { get; set; }
        public string name { get; set; }
        public string delimiter { get; set; }
        public bool enable { get; set; }
        public List<RuleLine> lines { get; set; }
    }

    public class BarcodeRuleConfiguration
    {
        public List<AssignRule> assign { get; set; }
        public List<BarcodeRule> rules { get; set; }
        public List<PrintRule> prints { get; set; }
    }
}